<template>
  <el-row>
    <div class="input">
      <el-date-picker v-if="question.style==='date'" type="date" v-model="question.datetime" :placeholder="question.placeholder"></el-date-picker>
      <el-time-picker v-if="question.style==='time'" v-model="question.datetime" :placeholder="question.placeholder"></el-time-picker>
      <el-date-picker v-if="question.style==='datetime'" type="datetime" v-model="question.datetime" :placeholder="question.placeholder"></el-date-picker>
    </div>
  </el-row>
</template>

<script>
  export default {
    name: "view-i-datetime",
    props: ['question'],
    created() {
      //console.log(this.question)
    },
    methods: {}
  }
</script>

<style scoped>

</style>
